package fr.afcepf.atod21.brigade.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the intervention database table.
 * 
 */
@Entity
@NamedQuery(name="Intervention.findAll", query="SELECT i FROM Intervention i")
public class Intervention implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id_intervention")
	private int idIntervention;

	private String adresse;

	private String commentaire;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="date_debut")
	private Date dateDebut;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="date_fin")
	private Date dateFin;

	@Column(name="id_reve")
	private int idReve;

	private String nom;

	private int numero;

	private String prenom;

	private int traite;

	//bi-directional many-to-one association to Equipe
	@ManyToOne
	@JoinColumn(name="id_equipe")
	private Equipe equipe;

	//bi-directional many-to-one association to Vehicule
	@ManyToOne
	@JoinColumn(name="id_vehicule")
	private Vehicule vehicule;

	public Intervention() {
	}

	public int getIdIntervention() {
		return this.idIntervention;
	}

	public void setIdIntervention(int idIntervention) {
		this.idIntervention = idIntervention;
	}

	public String getAdresse() {
		return this.adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public String getCommentaire() {
		return this.commentaire;
	}

	public void setCommentaire(String commentaire) {
		this.commentaire = commentaire;
	}

	public Date getDateDebut() {
		return this.dateDebut;
	}

	public void setDateDebut(Date dateDebut) {
		this.dateDebut = dateDebut;
	}

	public Date getDateFin() {
		return this.dateFin;
	}

	public void setDateFin(Date dateFin) {
		this.dateFin = dateFin;
	}

	public int getIdReve() {
		return this.idReve;
	}

	public void setIdReve(int idReve) {
		this.idReve = idReve;
	}

	public String getNom() {
		return this.nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public int getNumero() {
		return this.numero;
	}

	public void setNumero(int numero) {
		this.numero = numero;
	}

	public String getPrenom() {
		return this.prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public int getTraite() {
		return this.traite;
	}

	public void setTraite(int traite) {
		this.traite = traite;
	}

	public Equipe getEquipe() {
		return this.equipe;
	}

	public void setEquipe(Equipe equipe) {
		this.equipe = equipe;
	}

	public Vehicule getVehicule() {
		return this.vehicule;
	}

	public void setVehicule(Vehicule vehicule) {
		this.vehicule = vehicule;
	}

}